﻿using Snake.Gameplay;

public class TestAttributeSet : GameplayAttributeSet
{
    public readonly GameplayAttributeData Health = new GameplayAttributeData();

    public TestAttributeSet(GameplayAbilityComponent owner) : base(owner)
    {
        Health.Value = 100f;
    }

    public override GameplayAttributeData this[string key] =>
        key switch
        {
            "Health" => Health,
            _ => null
        };
}